      import java.util.Scanner;
       public class pp210
    {
     public static void main(String[]args)
   {  
     double Doller, Cent, Cent25, Cent10, Cent5, Cent1;
     int BASE1 = 25, BASE2 = 10, BASE3 = 5, BASE4 = 1, BASE = 100;
     Scanner scan = new Scanner(System.in);
     
     System.out.print("Cent25: ");
     Cent25 = scan.nextInt();
     
     System.out.print("Cent10: ");
     Cent10 = scan.nextInt();
     
     System.out.print("Cent5: ");
     Cent5 = scan.nextInt();
     
     System.out.print("Cent1: ");
     Cent1 = scan.nextInt();
 
     Doller = (Cent25 * BASE1 + Cent10 * BASE2 + Cent5 * BASE3 + Cent1 * BASE4) * BASE;
     Cent =Cent25 * BASE1 + Cent10 * BASE2 + Cent5 * BASE3 + Cent1 * BASE4;
    
     System.out.println("Doller: " + Doller);
     System.out.println("Cent: " + Cent);
    }
    }
